ADP\BaseVersion\Includes\CartProcessor\CartProcessor D

Total Complexity 204
Dependencies 41
Dependents 7
Total lines 1,471
Lines of code 954
Logical lines of code 597
Comment lines 230
Methods 32
Properties 24

Methods 32

Method Rating Maintainability Complexity Lines of code
process()
D
14
65 299
getAmountSavedOnlyBePricing()
A
42 15 50
addCommonItems()
A
36 12 93
eliminateClones()
A
43 12 54
__construct()
A
42 10 53
calculateFreeProductsMapping()
A
42 10 51
postApplyProcess()
A
49 8 33
getProductPriceDependsOnPriceMode()
A
50 8 26
addFreeItems()
A
44 6 49
addNoticeIfNotExists()
S
58 6 15
replaceCouponSuccessNotices()
S
51 5 28
deleteAllPricingDataFromCart()
S
54 5 20
notifyAboutAddedFreeItems()
S
61 5 12
insertRegularTotals()
S
54 4 20
processFreeItems()
S
58 4 16
syncCartItemHashes()
S
63 5 10
isAdpCoupon()
S
62 4 10
processAutoAddItems()
S
61 3 12
addNoticeAddedFreeProduct()
S
58 1 16
sanitizeWcCart()
S
68 2 7
filterCheckCartItemExistenceBeforeUpdate()
S
70 2 6
applyTotals()
S
69 2 7
withContext()
S
62 1 13
installActionFirstProcess()
S
62 1 13
addNoticeRemovedFreeProduct()
S
62 1 11
getCommonItemsFromCart()
S
79 1 3
setProductPriceDependsOnPriceMode()
S
80 1 3
getWcNoFilterWorker()
S
82 1 3
modifySession()
S
66 1 9
modifySessionIfCartIsEmpty()
S
73 1 5
isAdpCouponCode()
S
75 1 4
getListener()
S
82 1 3